SmsSubmitCase

open class SmsSubmitCase

Constructors

Link copied to clipboard
constructor(localDbRepository: LocalDbRepository, smsRepository: SmsRepository, deviceStateRepository: DeviceStateRepository, dhisVersionManager: DHISVersionManager)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun checkConfirmationSms(fromDate: Date): Completable
Observe incoming SMS waiting for a response to this submission case.
Link copied to clipboard
open fun compressDataSet(dataSet: String, orgUnit: String, period: String, attributeOptionComboUid: String): Single<String>
Generate the compressed message of a dataSet.
Link copied to clipboard
open fun compressDeletion(itemToDeleteUid: String): Single<String>
Generate the compressed message of an event to delete.
Link copied to clipboard
open fun compressEnrollment(enrollmentUid: String): Single<String>
Generate the compressed message of an enrollment.
Link copied to clipboard
open fun compressRelationship(relationshipUid: String): Single<String>
Generate the compressed message of a relationship.
Link copied to clipboard
open fun compressSimpleEvent(eventUid: String): Single<String>
Generate the compressed message of a simple event.
Link copied to clipboard
open fun compressTrackerEvent(eventUid: String): Single<String>
Generate the compressed message of a tracker event.
Link copied to clipboard
open fun convertDataSet(dataSet: String, orgUnit: String, period: String, attributeOptionComboUid: String): Single<Integer>
Set a dataSet to send by SMS.
Link copied to clipboard
open fun convertDeletion(itemToDeleteUid: String): Single<Integer>
Set an event to delete by SMS.
Link copied to clipboard
open fun convertEnrollment(enrollmentUid: String): Single<Integer>
Set an enrollment to send by SMS.
Link copied to clipboard
open fun convertRelationship(relationshipUid: String): Single<Integer>
Set a relationship to send by SMS.
Link copied to clipboard
open fun convertSimpleEvent(eventUid: String): Single<Integer>
Set a simple event to send by SMS.
Link copied to clipboard
open fun convertTrackerEvent(eventUid: String): Single<Integer>
Set a tracker event to send by SMS.
Link copied to clipboard
open fun isConfirmationMessage(sender: String, message: String): Single<Boolean>
Link copied to clipboard
open fun markAsSentViaSMS(): Completable
Link copied to clipboard
open fun send(): Observable<SmsRepository.SmsSendingState>
Call this method to send the SMS.